import java.util.Arrays;

public class Main {

    public static String myToString(int[] arr){
        String ok = "";
        ok+="[";
        for (int i=0;i<arr.length;i++)
        {
            ok+=arr[i];
           if (i!=arr.length-1)
               ok+=",";
            else
                ok+="]";
        }
        return ok;
    }

    public static void main(String[] args) {
        int[] array={1,2,3,4,5};
        //System.out.println(Arrays.toString(array));
        System.out.println(myToString(array));

    }
}